OpenPlant Modeler Help

Custom Attributes in OpenPlant Schemas

This topic will detail some custom attributes available for OpenPlant Modeler .

Property Mappings for Replace

The CUSTOM_ATTRIBUTE "PROPERTY_MAPPINGS_FOR_REPLACE" can be used to map properties when replacing components. It can be applied on properties of the source class and during replace operation. Values from those properties will be copied to the mapped properties of the target class.

For Example: CLASS_A can be replaced by CLASS_B and CLASS_C. During the replace operation, it is required to move the value of property 'PROP_1' of CLASS_A to property 'PROP_X' of CLASS_B and property 'PROP_Y' of CLASS_C.

The mapping can be defined as follows on property 'PROP_1':

<ECProperty propertyName="PROP_1" typeName="double" displayLabel="Property One">
            <ECCustomAttributes>
                <PROPERTY_MAPPINGS_FOR_REPLACE xmlns="OpenPlant_CustomAttributes.08.11">
                    <MAPPED_TO>
                        <string>CLASS_B|PROP_X</string>
                        <string>CLASS_C|PROP_Y</string>
                    </MAPPED_TO>
                </PROPERTY_MAPPINGS_FOR_REPLACE>
            </ECCustomAttributes>
    </ECProperty>